package com.javaclimb.accounting.dao;

import com.javaclimb.accounting.po.Account;
import com.javaclimb.accounting.po.Transfer;
import com.javaclimb.accounting.po.User;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface TransferDao {
    List<User> getUsersByName(String beforeName, String afterName);
    List<User> getUsersByTel(String beforeTel, String afterTel);
    List<Account> getAccount(Long beforeId, Long afterId);
    void add(Long accountId, Double money);
    void divide(Long accountId, Double money);
    void transfer(Transfer transfer);

}
